﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<ObjectModel.customers>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">

<h2>Edit</h2>

<script src="<%: Url.Content("~/Scripts/jquery.validate.min.js") %>" type="text/javascript"></script>
<script src="<%: Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js") %>" type="text/javascript"></script>

<% using (Html.BeginForm()) { %>
    <%: Html.ValidationSummary(true) %>
    <fieldset>
        <legend>customers</legend>

        <%: Html.HiddenFor(model => model.id) %>

        <div class="editor-label">
            <%: Html.LabelFor(model => model.name) %>
        </div>
        <div class="editor-field">
            <%: Html.EditorFor(model => model.name) %>
            <%: Html.ValidationMessageFor(model => model.name) %>
        </div>

        <div class="editor-label">
            <%: Html.LabelFor(model => model.corporate_name) %>
        </div>
        <div class="editor-field">
            <%: Html.EditorFor(model => model.corporate_name) %>
            <%: Html.ValidationMessageFor(model => model.corporate_name) %>
        </div>

        <div class="editor-label">
            <%: Html.LabelFor(model => model.creation_date) %>
        </div>
        <div class="editor-field">
            <%: Html.EditorFor(model => model.creation_date) %>
            <%: Html.ValidationMessageFor(model => model.creation_date) %>
        </div>

        <div class="editor-label">
            <%: Html.LabelFor(model => model.client_type) %>
        </div>
        <div class="editor-field">
            <%: Html.EditorFor(model => model.client_type) %>
            <%: Html.ValidationMessageFor(model => model.client_type) %>
        </div>

        <div class="editor-label">
            <%: Html.LabelFor(model => model.description) %>
        </div>
        <div class="editor-field">
            <%: Html.EditorFor(model => model.description) %>
            <%: Html.ValidationMessageFor(model => model.description) %>
        </div>

        <div class="editor-label">
            <%: Html.LabelFor(model => model.cnpj) %>
        </div>
        <div class="editor-field">
            <%: Html.EditorFor(model => model.cnpj) %>
            <%: Html.ValidationMessageFor(model => model.cnpj) %>
        </div>

        <div class="editor-label">
            <%: Html.LabelFor(model => model.municipal_registration) %>
        </div>
        <div class="editor-field">
            <%: Html.EditorFor(model => model.municipal_registration) %>
            <%: Html.ValidationMessageFor(model => model.municipal_registration) %>
        </div>

        <div class="editor-label">
            <%: Html.LabelFor(model => model.state_registration) %>
        </div>
        <div class="editor-field">
            <%: Html.EditorFor(model => model.state_registration) %>
            <%: Html.ValidationMessageFor(model => model.state_registration) %>
        </div>

        <div class="editor-label">
            <%: Html.LabelFor(model => model.tel) %>
        </div>
        <div class="editor-field">
            <%: Html.EditorFor(model => model.tel) %>
            <%: Html.ValidationMessageFor(model => model.tel) %>
        </div>

        <div class="editor-label">
            <%: Html.LabelFor(model => model.cel) %>
        </div>
        <div class="editor-field">
            <%: Html.EditorFor(model => model.cel) %>
            <%: Html.ValidationMessageFor(model => model.cel) %>
        </div>

        <div class="editor-label">
            <%: Html.LabelFor(model => model.personal_email) %>
        </div>
        <div class="editor-field">
            <%: Html.EditorFor(model => model.personal_email) %>
            <%: Html.ValidationMessageFor(model => model.personal_email) %>
        </div>

        <div class="editor-label">
            <%: Html.LabelFor(model => model.business_email) %>
        </div>
        <div class="editor-field">
            <%: Html.EditorFor(model => model.business_email) %>
            <%: Html.ValidationMessageFor(model => model.business_email) %>
        </div>

        <div class="editor-label">
            <%: Html.LabelFor(model => model.fax) %>
        </div>
        <div class="editor-field">
            <%: Html.EditorFor(model => model.fax) %>
            <%: Html.ValidationMessageFor(model => model.fax) %>
        </div>

        <div class="editor-label">
            <%: Html.LabelFor(model => model.street) %>
        </div>
        <div class="editor-field">
            <%: Html.EditorFor(model => model.street) %>
            <%: Html.ValidationMessageFor(model => model.street) %>
        </div>

        <div class="editor-label">
            <%: Html.LabelFor(model => model.complement) %>
        </div>
        <div class="editor-field">
            <%: Html.EditorFor(model => model.complement) %>
            <%: Html.ValidationMessageFor(model => model.complement) %>
        </div>

        <div class="editor-label">
            <%: Html.LabelFor(model => model.cep) %>
        </div>
        <div class="editor-field">
            <%: Html.EditorFor(model => model.cep) %>
            <%: Html.ValidationMessageFor(model => model.cep) %>
        </div>

        <div class="editor-label">
            <%: Html.LabelFor(model => model.neighbourhood) %>
        </div>
        <div class="editor-field">
            <%: Html.EditorFor(model => model.neighbourhood) %>
            <%: Html.ValidationMessageFor(model => model.neighbourhood) %>
        </div>

        <div class="editor-label">
            <%: Html.LabelFor(model => model.city) %>
        </div>
        <div class="editor-field">
            <%: Html.EditorFor(model => model.city) %>
            <%: Html.ValidationMessageFor(model => model.city) %>
        </div>

        <div class="editor-label">
            <%: Html.LabelFor(model => model.state) %>
        </div>
        <div class="editor-field">
            <%: Html.EditorFor(model => model.state) %>
            <%: Html.ValidationMessageFor(model => model.state) %>
        </div>

        <div class="editor-label">
            <%: Html.LabelFor(model => model.active) %>
        </div>
        <div class="editor-field">
            <%: Html.EditorFor(model => model.active) %>
            <%: Html.ValidationMessageFor(model => model.active) %>
        </div>

        <div class="editor-label">
            <%: Html.LabelFor(model => model.removed) %>
        </div>
        <div class="editor-field">
            <%: Html.EditorFor(model => model.removed) %>
            <%: Html.ValidationMessageFor(model => model.removed) %>
        </div>

        <p>
            <input type="submit" value="Save" />
        </p>
    </fieldset>
<% } %>

<div>
    <%: Html.ActionLink("Back to List", "Index") %>
</div>

</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="HeaderContent" runat="server">
</asp:Content>

